package com.useeinfo.oa.modules.security.entity;

import com.useeinfo.framework.extend.entity.SuperClassEntity;

import javax.persistence.*;

/**
 * 用户设备表
 */
@Entity
@Table(name = "user_device")
public class UserDevice extends SuperClassEntity<UserDevice> {

    /**
     * 所属用户
     */
    @ManyToOne
    @JoinColumn(name = "user_id")
    private SystemUser systemUser;
    /**
     * 设备Token
     */
    private String deviceToken;
    /**
     * 设备类型    ios：苹果   android：安卓   具体看枚举：DeviceType
     */
    private String deviceType;

    public UserDevice() {
    }

    public UserDevice(SystemUser systemUser, String deviceToken, String deviceType) {
        this.systemUser = systemUser;
        this.deviceToken = deviceToken;
        this.deviceType = deviceType;
    }


    public SystemUser getSystemUser() {
        return systemUser;
    }

    public void setSystemUser(SystemUser systemUser) {
        this.systemUser = systemUser;
    }

    public String getDeviceToken() {
        return deviceToken;
    }

    public void setDeviceToken(String deviceToken) {
        this.deviceToken = deviceToken;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }
}
